import request from "@/utils/request";
// 获取用户列表
export const userListAPI = (params) => {
  return request({
    url: "/user/list",
    params,
  });
};
// 新增用户列表
export const userListAddAPI = (data) => {
  return request({
    url: "/user/add",
    method: "post",
    data,
  });
};
// 修改用户列表
export const userListEditAPI = (data) => {
  return request({
    url: "/user/edit",
    method: "post",
    data,
  });
};
// 删除用户
export const userListRemoveAPI = (id) => {
  return request({
    url: "/user/remove",
    method: "post",
    params: {
      id,
    },
  });
};

export const userListStatusAPI = (id) => {
  return request({
    url: "/user/status",
    method: "post",
    params: {
      id,
    },
  });
};
